import request from "@/utils/request"

export default {
  // 列表
  query(data) {
    return request({
      baseURL: window.APP_GETEWAY.owpmc,
      url: `/v1/purchase-demand/department-amount-config/list`,
      method: "post",
      data,
    })
  },
  // 添加
  create(data) {
    return request({
      baseURL: window.APP_GETEWAY.owpmc,
      url: `/v1/purchase-demand/department-amount-config/create`,
      method: "post",
      data,
    })
  },
  // 编辑
  edit(data) {
    return request({
      baseURL: window.APP_GETEWAY.owpmc,
      url: `/v1/purchase-demand/department-amount-config/edit`,
      method: "post",
      data,
    })
  },
  // 详情
  detail(params) {
    return request({
      baseURL: window.APP_GETEWAY.owpmc,
      url: `/v1/purchase-demand/department-amount-config/detail`,
      method: "get",
      params,
    })
  },
}
